﻿<%@ Page Language="C#" MasterPageFile="~/user.master" AutoEventWireup="true" Inherits="MediaMonitor.Users.Report_Outdoor_Map"
     Title="Report - Outdoor" CodeBehind="report-outdoor-map.aspx.cs" %>
     
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="~/users/OutDoorMap.ascx" TagPrefix="ctrl" TagName="OutDoorMap" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server">
    <link href="../rad-scripts/Grid.MyCustomSkin.css" rel="stylesheet" type="text/css" /> 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Body" Runat="Server">
    
    
  <%--  <asp:UpdatePanel ID="pnlUpdate" runat="server">
        <ContentTemplate>
        --%>
        <div style="display:block">
        
        <div style="float:left; text-align:left; padding:10px; border:none; display:none">
                <table>
            <tr>
                <td>
                    <asp:LinkButton ID="lnkGrp_Adv" runat="server" Text="Group Advertiser" CommandArgument="AdvertiserName"
                        OnClick="lnkGrp_Clicked" class="Box"></asp:LinkButton>
                </td>
                <td>
                    <asp:LinkButton ID="lnkGrp_Agnc" runat="server" Text="Group Agency" CommandArgument="AgencyName"
                        OnClick="lnkGrp_Clicked" class="Box"></asp:LinkButton>
                </td>
                <td>
                    <asp:LinkButton ID="lnkGrp_Brnd" runat="server" Text="Group Brand" CommandArgument="BrandName"
                        OnClick="lnkGrp_Clicked" class="Box"></asp:LinkButton>
                </td>
                <td>
                    <asp:LinkButton ID="lnkGrp_Prod" runat="server" Text="Group Product" CommandArgument="ProductName"
                        OnClick="lnkGrp_Clicked" class="Box"></asp:LinkButton>
                </td>
                <td>
                    <asp:LinkButton ID="lnkGrp_Media" runat="server" Text="Group Media" CommandArgument="MediaName"
                        OnClick="lnkGrp_Clicked" class="Box"></asp:LinkButton>
                </td>
                
            </tr> 
        </table>

        </div>

        <div style="float: right; text-align: right; padding: 10px; border: none;">
            <asp:LinkButton ID="lnkClearGroup" runat="server" Text="[Clear Grouping]" Visible="false"
                OnClick="lnkClearGroup_Clicked"></asp:LinkButton>
        </div>
        
        </div>
        <br /><br /> 
        <asp:Label ID="lblMsg" runat="server" SkinID="Error" Font-Bold="true" />
         <br />
         
         <ctrl:OutDoorMap  id="odMap" runat="server" />
        
         <!--do not remove the following btn, used to open the popup-->
         <asp:LinkButton ID="btnShowPop" runat="server" Width="1" Height="1" />

          
         <!--start modal-->
            <script type="text/javascript">


        function SetPostion2(obj, width, height) {

            if (!obj)
                return;

            var left = parseInt((screen.availWidth / 2) - (width / 2));
            var top = parseInt((screen.availHeight / 2) - (height));

            var scrollTop = document.body.scrollTop;
            if (scrollTop == 0) {
                if (window.pageYOffset)
                    scrollTop = window.pageYOffset;
                else
                    scrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
            }

            obj.style.left = left + 'px';
            obj.style.top = scrollTop + top + 'px';
            //obj.style.width=width+'px';
            //obj.style.height=height+'px';
            obj.style.position = 'absolute';

        }

        function SetPositionBg2(obj) {
            if (!obj)
                return;

            var left = 0;
            var top = 0;

            var scrollTop = document.body.scrollTop;
            if (scrollTop == 0) {
                if (window.pageYOffset)
                    scrollTop = window.pageYOffset;
                else
                    scrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
            }

            obj.style.left = left + 'px';
            obj.style.top = scrollTop + top + 'px';
            //obj.style.width=width+'px';
            obj.style.height = scrollTop + screen.availHeight + 'px';
            obj.style.position = 'absolute';

        }

        function AjaxLoading2(tbl, dv, bool) {
            if (bool) {
                SetPostion2(document.getElementById(tbl), 350, 200);
                SetPositionBg2(document.getElementById(dv));
                document.getElementById(tbl).style.display = 'block';
                //document.getElementById('dvBg').style.display='block';
            }
            else {
                document.getElementById(tbl).style.display = 'none';
                //document.getElementById('dvBg').style.display='none';
            }
        }

  </script>

             <!--warning-->
             <asp:Panel ID="pnl" runat="server" Visible="false">
                <asp:HiddenField ID="hdnPV" runat="server" Value="0" />
                <asp:HiddenField ID="hdnPD" runat="server" Value="0" />
                <asp:HiddenField ID="hdnPrice" runat="server" Value="0" />
                <asp:HiddenField ID="hdnOutDoorFile" runat="server" Value="" />
                 
                 <div id="dvBg2" style="display: block; width: 100%; height: 250%; text-align: center;
                     position: absolute; left: 0px; top: 0px;" class="GreyedOutCss">
                 </div>
                <center>
                    <div id="dvWarning" style="border: solid 4px #ababab; padding: 20px; width: 350px; height: 200px;
                        background-color: White; z-index: 100; position:absolute; top:400px; left:500px; ">
                        <br /><br />
                         
                            <asp:Literal ID="ltrWarningOrderNum" runat="server" />
                         
                        <br />
                        <br />
                        <asp:Button ID="btnCancel" runat="server" Text="Don't Purchase" OnClick="btnCancelPurchase_Clicked" />
                        <asp:Button ID="btnContinue" runat="server" Text="Continue with Purchase" OnClick="btnContinuePurchase_Clicked" />
                    </div>
                </center> 
             </asp:Panel>

             <!--end warning-->
             
             
       <%--  </div> --%>
         <!--end modal-->

      <%--  </ContentTemplate>
    </asp:UpdatePanel>--%>

    <%--</telerik:RadAjaxPanel> --%>
   
</asp:Content>

